package com.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Spring cloud clent
 * @Author wangjian (jian.wang@bertelsmann.com.cn)
 * @Date 2016/11/15 10:23
 */
//@Configuration//配置控制
//@EnableAutoConfiguration//启用自动配置
//@EnableFeignClients
//@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages={"com.cloud"})//组件扫描
@EnableFeignClients
@EnableDiscoveryClient
//@EnableCircuitBreaker
public class SimpleApplication {

    public static void main(String[] args) {
        SpringApplication.run(SimpleApplication.class,args);
    }

//    @LoadBalanced
//    @Bean
//    RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}
